//
//  PhotoCell.swift
//  QualityControlSystem
//
//  Created by dundun on 17/1/13.
//  Copyright © 2017年 com.mask. All rights reserved.
//

import UIKit
import SnapKit

class PhotoCell: UICollectionViewCell {
    
    var photo: UIImageView?

    override init(frame: CGRect) {
        super.init(frame: frame)
        setupSubViews()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func setupSubViews() {
        photo = UIImageView()
        photo?.backgroundColor = UIColor.brown
        contentView.addSubview(photo!)
        photo?.snp.makeConstraints { (make) in
            make.centerX.equalTo(contentView.snp.centerX)
            make.centerY.equalTo(contentView.snp.centerY)
            make.top.equalTo(contentView.snp.top)
            make.left.equalTo(contentView.snp.left)
        }
    }
    
}
